Auto merge of #1232 - alexcrichton:issue-1231, r=huonw
authorbors <bors@rust-lang.org>
Thu, 29 Jan 2015 00:56:56 +0000 (00:56 +0000)
committerbors <bors@rust-lang.org>
Thu, 29 Jan 2015 00:56:56 +0000 (00:56 +0000)
commit453ae9f268c7e41c25012514eb5c502a3711e480
treeb9f3964afaef0565d25132e4ce501cc8b096a9df
parent92a951582b347519e7c8018cb4cb0e302422de40
parentafcc3ef4c7d8f1353b128868589f6de25cd4e84e
Auto merge of #1232 - alexcrichton:issue-1231, r=huonw

* Break out the error reporting to its own separate function
* Don't pass `Context` by value as it's quite large, instead pass `Box<Context>`
* Don't bother monomorphizing `R: Registry`, instead just take a trait object.

Closes #1231